<div class="list-group">
  {% for blog_category in blog_categories %}
  {% if blog_category.blog_category_id == blog_category_id %} 
  <a href="{{ blog_category.href }}" class="list-group-item active">{{ blog_category.name }}</a> 
  {% if blog_category.children %}
  {% for child in blog_category.children %}
  {% if child.blog_category_id == child_id %}
  <a href="{{ child.href }}" class="list-group-item active">&nbsp;&nbsp;&nbsp;- {{ child.name }}</a> 
  {% else %} 
  <a href="{{ child.href }}" class="list-group-item">&nbsp;&nbsp;&nbsp;- {{ child.name }}</a>
  {% endif %}
  {% endfor %}
  {% endif %}
  {% else %} <a href="{{ blog_category.href }}" class="list-group-item">{{ blog_category.name }}</a>
  {% endif %}
  {% endfor %}
</div>
